package com.woniuxy.microfundservice.dao;

import com.woniuxy.microfundservice.bean.info.FundFullInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (FundFullInfo)表数据库访问层
 *
 * @author makejava
 * @since 2021-04-07 12:00:39
 */
@Mapper
public interface FundFullInfoDao {



    int addOne(FundFullInfo fundFullInfo);

    int addMulti(List<FundFullInfo> fundFullInfos);

    FundFullInfo selectLocal(String fundCode);

    /**
     * 修改数据
     *
     * @param fundFullInfo 实例对象
     * @return 影响行数
     */
    int updateOne(FundFullInfo fundFullInfo);

    int delete(@Param("id") List<Integer> id);

    List<FundFullInfo> selectBYPolicy(@Param("policy") String policy);

    List<FundFullInfo> selectAll();

    List<FundFullInfo> selectKey(@Param("select") String select);

    FundFullInfo selectOne(@Param("id") int id);

    List<FundFullInfo> selectDelete();

    List<FundFullInfo> selectKeyDelete(@Param("select") String select);

    int deleteDel(@Param("id") List<Integer> id);

    int recoverFund(@Param("id") int id);

    List<Integer> selectAllCode();

    void updateAll(FundFullInfo newInfos);

    void addScore(Integer fundId);

    FundFullInfo selectById(int id);
}